package com.kedi.usercenter.service.impl;

import com.kedi.usercenter.read.mapper.ReportMapper;
import com.kedi.usercenter.service.ReportService;
import com.kedi.usercenter.write.mapper.WriteReportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
* @Description:    创建个人权益维护表
* @Author:         ytw
* @CreateDate:     2019/8/1 16:59
* @UpdateRemark:   修改内容
* @Version:        1.0
*/
@Service
public class ReportServiceImpl implements ReportService {
    @Autowired
    private ReportMapper mapper1;

    @Autowired
    private WriteReportMapper mapper2;
    /**
    * 方法实现说明  创造个人权益维护表
    * @author      ytw
    *@param
    * @return
    * @exception
    * @date        2019/8/1 16:59
    */
    @Override
    public Integer createReport(Map map) {

        return mapper2.createReport(map);
    }

    /**
    * 方法实现说明  查找个人权益维护类型
    * @author      ytw
    *@param
    * @return
    * @exception
    * @date        2019/8/1 16:59
    */
    @Override
    public List<Map<String,Object>> selectReportType() {

        return mapper1.selectReportType();
    }
}
